import { appPort } from './config/setting.js'
import koa from 'koa'
import{useControllers} from './controllers/index.js'
import { sync } from './db/index.js';

let app = new koa();



app.use(async(ctx,next)=>{
    await next()
})

useControllers(app)


app.listen(appPort)
console.log(`服务运行在如下地址：http://localhost:${appPort}`);




